<template>
  <div class="container">
    <div class="content">
      <div class="main-office">
        <div class="main-box">
          <span class="title">International College</span>
          <span class="icon iconfont bank">&#xe86f;</span>
        </div>
      </div>
      <div class="lines">
        <div class="line-top"></div>
        <div class="line-center"></div>
        <div class="line-bottom"></div>
        <div class="line-align"></div>
      </div>
      <div class="sub-office">
        <router-link to="/CurrentLeader" tag="div" class="box">
          <span class="title">Current Leader</span>
          <span class="icon iconfont bank">&#xe86f;</span>
        </router-link>
        <router-link to="/AdministrationOffice" tag="div" class="box">
          <span class="title">Administration Office</span>
          <span class="icon iconfont bank">&#xe86f;</span>
        </router-link>
        <router-link to="/DepartmentSetting" tag="div" class="box">
          <span class="title">Department Settings</span>
          <span class="icon iconfont bank">&#xe86f;</span>
        </router-link>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'HomeDetails'
}
</script>

<style lang="scss" scoped>
.container {
  width: 100%;
  // height: 1000px;
  // display: flex;
  .content {
    display: flex;
    .main-office, .sub-office {
      width: 38%;
      height: 500px;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      flex-wrap: wrap;
      // background-color: #ccc;
      .main-box, .box {
        width: 275px;
        height: 130px;
        padding: 20px 10px;
        position: relative;
        border: 1px solid #eee;
        border-radius: 4px;
        box-shadow: 1px 1px 3px #555;
        box-sizing: border-box;
        background-color: #fafafa;
        text-align: center;
        font-size: 24px;
        color: #555;
        .icon {
          position: absolute;
          right: 20px;
          bottom: 12px;
          font-size: 40px;
          color: #72c02c;
          transition: all .4s linear;
        }
      }
      .box {
        cursor: pointer;
        transition: all .4s linear;
        &:hover {
          background-color: #72c02c;
          color: #fff;
        }
        &:hover .icon {
          color: #fff;
        }
      }
    }
    .lines {
      width: 24%;
      height: 500px;
      position: relative;
      // background-color: #eee;
      .line-top, .line-center, .line-bottom {
        position: absolute;
        width: 120px;
        border-bottom: 1.5px dotted #555;
      }
      .line-top {
        right: 0;
        top: 80px;
      }
      .line-center {
        width: 250px;
        right: 0;
        top: 250px;
      }
      .line-bottom {
        right: 0;
        top: 415px;
      }
      .line-align {
        position: absolute;
        left: 130px;
        top: 80px;
        height: 337px;
        border-left: 1.5px dotted #555;
      }
    }
    .sub-office {
      width: 38%;
      height: 500px;
      display: flex;
      justify-content: flex-start;
      margin-left: 5px;
      // background-color: ghostwhite;
    }
  }
}
</style>
